import Layout from '@/layout'
export default {
  path: '/salarys',
  component: Layout, // 组件
  // 配置二级路的路由表
  children: [{
    name: 'salarys',
    path: '',
    component: () => import('@/views/salarys'),
    // 路由元信息
    meta: {
      title: '薪资管理',
      icon: 'money'
    }
  },
  {
    path: 'setting',
    component: () => import('@/views/salarys/setting'),
    name: 'salarysSetting',
    hidden: true,
    meta: {
      title: '设置'
    }
  },
  {
    path: 'details/:yearMonth/:id',
    component: () => import('@/views/salarys/detail'),
    name: 'salarysDetails',
    hidden: true,
    meta: {
      title: '详情'
    }
  },
  {
    path: 'historicalArchiving',
    component: () => import('@/views/salarys/historical'),
    name: 'salarysHistorical',
    hidden: true,
    meta: {
      title: '历史归档'
    }
  },
  {
    path: 'monthStatement',
    component: () => import('@/views/salarys/month'),
    name: 'salarysMonthStatement',
    hidden: true,
    meta: {
      title: '月报表'
    }
  }
  ]
}
